<?php
final class XTestRunner{
	private static $instance = null;
	private $paths = array();
	private $tests = array();
	
	private function __construct() {
	
	}

	/**
	 * @return XTestRunner
	 */	
	static function singleton() {
		if (!self::$instance) {
			self::$instance = new self;
		}
		return self::$instance;
	}
	
	public function addPath($path){
		$this->paths[] = $path;
		return $this;
	}
	
	public function addTest(XTestCase $test){
		$this->tests[] = $test;
		return $this;
	}
	
	public function run(){
		//TODO
		foreach($this->paths as $path){
			
		}
		foreach($this->tests as $test){
			$test->run();
		}
	}
}
?>